package com.liufh.aop;

import org.aspectj.lang.JoinPoint;

import java.util.Arrays;

/**
 * @author: liufh
 * @create: 2021-09-16 14:26
 */
public class CheckUtil {

    public void beforeCheck(JoinPoint jp){
        Object[] args = jp.getArgs();
        System.out.println("前置通知：beforeCheck，参数是：" + Arrays.toString(args));
    }

    public void afterReturningCheck(Object rtValue){
        System.out.println("后置通知：afterReturningCheck，返回值是：" + rtValue);
    }

}
